import { http } from '@/utils/http/axios';

/**
 * @description: 客户端列表
 */
export function clientsPages(params) {
  return http.request({
    url: '/moss-cloud-base/base/client/clientPage',
    method: 'POST',
    data:params,
  });
}

/**
 * @description: 新增客户端
 */
export function saveClient(params) {
  return http.request({
    url: '/moss-cloud-base/base/client/saveClient',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}

/**
 * @description: 编辑客户端
 */
export function updateClient(params) {
  return http.request({
    url: '/moss-cloud-base/base/client/updateClient',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}

/**
 * @description: 删除客户端
 */
export function removeClient(params) {
  return http.request({
    url: '/moss-cloud-base/base/client/removeClient',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}
/**
 * @description: 查看客户端秘钥
 */
export function viewSecret(params) {
  return http.request({
    url: '/moss-cloud-base/base/client/viewSecret',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}

/**
 * @description: 查看客户端加密KEY
 */
export function viewClientKey(params) {
  return http.request({
    url: '/moss-cloud-base/base/client/viewClientKey',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}
/**
 * @description: 重置秘钥
 */
export function resetSecret(params) {
  return http.request({
    url: '/moss-cloud-base/base/client/resetSecret',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}
